<div class="wikidoc">
<p>multiple map datasource &lt;--PBS--&gt; multiple map api</p>
<p><a href="http://blog.newnaw.com/?p=890" target="_self">中文说明</a></p>
<p><a title="What's new archive" href="https://geopbs.codeplex.com/wikipage?title=What%27s%20New%20achieve" target="_self">What's new archive</a></p>
<p><a href="https://geopbs.codeplex.com/wikipage?title=Donate">对PBS进行捐助（说明）</a></p>
<p>What's new in&nbsp;v3.1:</p>
<div>Add support for RecreateEmptyCache mode when convert online tiles to MBTiles. Use this mode when you want to continue the unfinished job or merge tiles of several levels or several extents.
<br>
Add support for Multi-Layer mode when configuring CustomOnlineMaps.xml.<br>
Bug fix.</div>
<p>&nbsp;</p>
<p><strong>Project Description</strong><br>
Portable Basemap Server is an easy to use WPF application and has implemented map tile part of Esri&rsquo;s &ldquo;GeoServices REST Specification&rdquo; and OGC WMTS specification, which wraps various kinds of data source to provide identical REST and WMTS
 basemap service, and then can be used by ArcGIS and third party APIs.</p>
<div><img src="http://blog.newnaw.com/wp-content/uploads/2011/12/Untitled-1.jpg" alt="PBS datasource"></div>
<div><strong><span style="font-size:medium">Data Source Type</span></strong></div>
<div>
<ul>
<li>MobileAtlasCreator: Sqlite file from&nbsp;<a href="http://mobac.sourceforge.net/" target="_self">Mobile Atlas Creator</a>.
</li><li>MBTile: Sqlite file implement&nbsp;<a href="http://mbtiles.org/" target="_self">MBTile</a>&nbsp;specification.
</li><li>ArcGISCache: ArcGIS MapServer Cache files, support both exploded and compact storage format.
</li><li>RasterDataset: Raster image file can be directly published by PBS, and served as&nbsp;<a href="http://www.arcgis.com/home/item.html?id=5e32a79350b241f38032f9ca0321ccde" target="_self">DynamicTiledMapService</a>. PBS reads raster files by using&nbsp;<a href="http://www.gdal.org/" target="_self">GDAL</a>,
 see&nbsp;<a href="http://www.gdal.org/formats_list.html" target="_self">complete supported format</a>. Support .ecw, .sid and gdal .vrt file format.
</li><li>ArcGISDynamicService: PBS can convert ArcGIS Dynamic MapService to&nbsp;<a href="http://www.arcgis.com/home/item.html?id=5e32a79350b241f38032f9ca0321ccde" target="_self">DynamicTiledMapService</a>, which has a effect of ArcGISTiledMapService but support
 dynamic projection. </li><li>Online Maps: including Google Maps/Bing Maps Road and Imagery, OpenStreetMap, TianDiTu. Warning: these data source can only use for testing purpose, DO NOT use them for commercial purpose.
</li></ul>
<div><strong><span style="font-size:medium">Usage</span></strong></div>
</div>
<div>
<ul>
<li>Set DataSourceType. </li><li>Set corresponding data source path. Online Maps don't need this setting. </li><li>Set a port number and a service name for your basemap service. Multiple service can be published on same port, and multiple port can be used.
</li><li>Start your service by clicking &quot;Start New Service&quot;. </li><li>Double click a service to preview it and its details in a new window. </li><li>Select a service and clicking &quot;DeleteService&quot; to delete a service. </li></ul>
</div>
<div><span style="font-size:x-small"><br>
</span></div>
<div><strong><span style="font-size:medium">Performance</span></strong></div>
<div>PBS uses WCF REST technology and supports multiple client and&nbsp;concurrent requests.</div>
<div>For more information, please read this&nbsp;<a href="http://blog.newnaw.com/?p=890" target="_self">Chinese post</a>.</div>
<div><strong><span style="font-size:medium">Access and Use Constraints</span></strong></div>
<div>Online Map resources can only be used for testing purpose, DO NOT use them commercially.</div>
<div><strong><span style="font-size:medium">Thanks to the following projects:</span></strong></div>
<div><a href="http://www.gdal.org/" target="_blank">GDAL</a></div>
<div><a href="http://memcached.org/" target="_blank">Memcached</a></div>
<div><a href="http://sourceforge.net/projects/memcacheddotnet/" target="_blank">.Net memcached client</a></div>
<div><a href="https://www.sqlite.org/" target="_blank">SQLite</a></div>
<div><a href="https://github.com/mapbox/mbtiles-spec" target="_blank">MBTiles</a></div>
</div><div class="ClearBoth"></div>